package com.forekonw.demotest1028;

public class TestEmployee {
    public static void main(String[] args) {
        EmployeeManager em = new EmployeeManager(0);
        Employee e1 = new Employee();
        e1.setEmpno(12);
        e1.setName("tony");
        e1.setDeptno(15);
        e1.setSal(1234.221);
        em.add(e1);
        Employee e2 = new Employee();
        e2.setEmpno(15);
        e2.setName("tome");
        e2.setDeptno(12);
        e2.setSal(1254.43);
        em.add(e2);

        Employee[] a =em.allget();
        for (int i =0 ;i<2;i++){
            System.out.println(a[i].getEmpno()+"---"+a[i].getDeptno());
        }

        Employee b = em.xinxi(15);
        System.out.println(b.getEmpno()+b.getName());
    }
}
